export default {
  simplified(value) {
    const numbers = ['〇', '一', '二', '三', '四', '五', '六', '七', '八', '九'];
    return numbers[value]
  },
  price(value, fixed = 'auto') {
    if (!value) {
      return 0;
    }
    let price = parseFloat(value || 0) || 0;
    if (fixed == 'auto') {
      return String(price);
    }
    return price.toFixed(fixed);
  }
};
